'use strict';

const moment = require('moment');
const Sequelize = require('sequelize');
const { Model } = Sequelize;

const mysql = require('../common/mysql');

class PublishInfo extends Model { }

PublishInfo.init({
    env: {
        type: Sequelize.STRING,
        primaryKey: true,
    },
    nextIteration: {
        type: Sequelize.STRING,
    },
    nextVersion: {
        type: Sequelize.STRING,
    },
    currentIteration: {
        type: Sequelize.STRING,
    },
    currentVersion: {
        type: Sequelize.STRING,
    }
}, {
    sequelize: mysql,
    modelName: 'publish_infos',
    timestamps: false,
});

module.exports = PublishInfo;